﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Abp.Domain.Entities;
using Toolbelt.ComponentModel.DataAnnotations.Schema;

namespace HCD.Entities
{
    public class LabResultV : Entity<string>
    {
        [Column("ID")]
        public override string Id { get => base.Id; set => base.Id = value; }
        /// <summary>
        /// 检验单号 传检验单唯一标识
        /// </summary>
        [Column("LAB_TEST_NO")]
        public string LabTestNo { get; set; }

        /// <summary>
        /// 项目序号
        /// </summary>
        [Column("ITEM_NO")]
        public int? ItemNo { get; set; }

        /// <summary>
        /// 检验报告项目名称
        /// </summary>
        [Column("REPORT_ITEM_NAME")]
        public string ReportItemName { get; set; }

        /// <summary>
        /// 检验报告项目代码
        /// </summary>
        [Column("REPORT_ITEM_CODE")]
        public string ReportItemCode { get; set; }

        /// <summary>
        /// 检验结果值
        /// </summary>
        [Column("RESULT")]
        public string Result { get; set; }

        /// <summary>
        /// 检验结果单位
        /// </summary>
        [Column("UNITS")]
        public string Units { get; set; }

        /// <summary>
        /// 结果正常标志[N正常H高L低T高危B低危]
        /// </summary>
        [Column("ABNORMAL_INDICATOR")]
        public string AbnormalIndicator { get; set; }

        /// <summary>
        /// 最大值
        /// </summary>
        [Column("MAXEGENT_LIMIT")]
        public decimal? MaxegentLimit { get; set; }

        /// <summary>
        /// 最小值
        /// </summary>
        [Column("MINEGENT_LIMIT")]
        public decimal? MinegentLimit { get; set; }

        /// <summary>
        /// 结果范围
        /// </summary>
        [Column("RESULT_RANGE")]
        public string ResultRange { get; set; }
    }
}